package cn.ssq.dao;

import cn.ssq.domain.SampleToxin;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SampleToxinMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(SampleToxin record);

    int insertSelective(SampleToxin record);

    SampleToxin selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(SampleToxin record);

    int updateByPrimaryKey(@Param("samid") Integer samid);
    int insertToxn(@Param("toxinId") Integer toxinId, @Param("toxinCount") String toxinCount, @Param("sampleInfoId") int sampleInfoId);

    /**
     * @param sampleInfoId
     * @return
     */
    Integer[] selectByToxinId(Integer sampleInfoId);
    List<SampleToxin> selectBySampleInfoId(Integer sampleId);


}